/**
 * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package postlogin.service.persistence;

import com.liferay.portal.service.persistence.BasePersistence;

import postlogin.model.UsuarioSlicRol;

/**
 * The persistence interface for the usuario slic rol service.
 *
 * <p>
 * Caching information and settings can be found in <code>portal.properties</code>
 * </p>
 *
 * @author tito
 * @see UsuarioSlicRolPersistenceImpl
 * @see UsuarioSlicRolUtil
 * @generated
 */
public interface UsuarioSlicRolPersistence extends BasePersistence<UsuarioSlicRol> {
	/*
	 * NOTE FOR DEVELOPERS:
	 *
	 * Never modify or reference this interface directly. Always use {@link UsuarioSlicRolUtil} to access the usuario slic rol persistence. Modify <code>service.xml</code> and rerun ServiceBuilder to regenerate this interface.
	 */

	/**
	* Caches the usuario slic rol in the entity cache if it is enabled.
	*
	* @param usuarioSlicRol the usuario slic rol
	*/
	public void cacheResult(postlogin.model.UsuarioSlicRol usuarioSlicRol);

	/**
	* Caches the usuario slic rols in the entity cache if it is enabled.
	*
	* @param usuarioSlicRols the usuario slic rols
	*/
	public void cacheResult(
		java.util.List<postlogin.model.UsuarioSlicRol> usuarioSlicRols);

	/**
	* Creates a new usuario slic rol with the primary key. Does not add the usuario slic rol to the database.
	*
	* @param usuarioSlicRolId the primary key for the new usuario slic rol
	* @return the new usuario slic rol
	*/
	public postlogin.model.UsuarioSlicRol create(long usuarioSlicRolId);

	/**
	* Removes the usuario slic rol with the primary key from the database. Also notifies the appropriate model listeners.
	*
	* @param usuarioSlicRolId the primary key of the usuario slic rol
	* @return the usuario slic rol that was removed
	* @throws postlogin.NoSuchUsuarioSlicRolException if a usuario slic rol with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public postlogin.model.UsuarioSlicRol remove(long usuarioSlicRolId)
		throws com.liferay.portal.kernel.exception.SystemException,
			postlogin.NoSuchUsuarioSlicRolException;

	public postlogin.model.UsuarioSlicRol updateImpl(
		postlogin.model.UsuarioSlicRol usuarioSlicRol, boolean merge)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the usuario slic rol with the primary key or throws a {@link postlogin.NoSuchUsuarioSlicRolException} if it could not be found.
	*
	* @param usuarioSlicRolId the primary key of the usuario slic rol
	* @return the usuario slic rol
	* @throws postlogin.NoSuchUsuarioSlicRolException if a usuario slic rol with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public postlogin.model.UsuarioSlicRol findByPrimaryKey(
		long usuarioSlicRolId)
		throws com.liferay.portal.kernel.exception.SystemException,
			postlogin.NoSuchUsuarioSlicRolException;

	/**
	* Returns the usuario slic rol with the primary key or returns <code>null</code> if it could not be found.
	*
	* @param usuarioSlicRolId the primary key of the usuario slic rol
	* @return the usuario slic rol, or <code>null</code> if a usuario slic rol with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public postlogin.model.UsuarioSlicRol fetchByPrimaryKey(
		long usuarioSlicRolId)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns all the usuario slic rols where usuario = &#63;.
	*
	* @param usuario the usuario
	* @return the matching usuario slic rols
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<postlogin.model.UsuarioSlicRol> findByUsuario(
		java.lang.String usuario)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the usuario slic rols where usuario = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param usuario the usuario
	* @param start the lower bound of the range of usuario slic rols
	* @param end the upper bound of the range of usuario slic rols (not inclusive)
	* @return the range of matching usuario slic rols
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<postlogin.model.UsuarioSlicRol> findByUsuario(
		java.lang.String usuario, int start, int end)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the usuario slic rols where usuario = &#63;.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param usuario the usuario
	* @param start the lower bound of the range of usuario slic rols
	* @param end the upper bound of the range of usuario slic rols (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of matching usuario slic rols
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<postlogin.model.UsuarioSlicRol> findByUsuario(
		java.lang.String usuario, int start, int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the first usuario slic rol in the ordered set where usuario = &#63;.
	*
	* @param usuario the usuario
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching usuario slic rol
	* @throws postlogin.NoSuchUsuarioSlicRolException if a matching usuario slic rol could not be found
	* @throws SystemException if a system exception occurred
	*/
	public postlogin.model.UsuarioSlicRol findByUsuario_First(
		java.lang.String usuario,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			postlogin.NoSuchUsuarioSlicRolException;

	/**
	* Returns the first usuario slic rol in the ordered set where usuario = &#63;.
	*
	* @param usuario the usuario
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the first matching usuario slic rol, or <code>null</code> if a matching usuario slic rol could not be found
	* @throws SystemException if a system exception occurred
	*/
	public postlogin.model.UsuarioSlicRol fetchByUsuario_First(
		java.lang.String usuario,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the last usuario slic rol in the ordered set where usuario = &#63;.
	*
	* @param usuario the usuario
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching usuario slic rol
	* @throws postlogin.NoSuchUsuarioSlicRolException if a matching usuario slic rol could not be found
	* @throws SystemException if a system exception occurred
	*/
	public postlogin.model.UsuarioSlicRol findByUsuario_Last(
		java.lang.String usuario,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			postlogin.NoSuchUsuarioSlicRolException;

	/**
	* Returns the last usuario slic rol in the ordered set where usuario = &#63;.
	*
	* @param usuario the usuario
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the last matching usuario slic rol, or <code>null</code> if a matching usuario slic rol could not be found
	* @throws SystemException if a system exception occurred
	*/
	public postlogin.model.UsuarioSlicRol fetchByUsuario_Last(
		java.lang.String usuario,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the usuario slic rols before and after the current usuario slic rol in the ordered set where usuario = &#63;.
	*
	* @param usuarioSlicRolId the primary key of the current usuario slic rol
	* @param usuario the usuario
	* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
	* @return the previous, current, and next usuario slic rol
	* @throws postlogin.NoSuchUsuarioSlicRolException if a usuario slic rol with the primary key could not be found
	* @throws SystemException if a system exception occurred
	*/
	public postlogin.model.UsuarioSlicRol[] findByUsuario_PrevAndNext(
		long usuarioSlicRolId, java.lang.String usuario,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException,
			postlogin.NoSuchUsuarioSlicRolException;

	/**
	* Returns all the usuario slic rols.
	*
	* @return the usuario slic rols
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<postlogin.model.UsuarioSlicRol> findAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns a range of all the usuario slic rols.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of usuario slic rols
	* @param end the upper bound of the range of usuario slic rols (not inclusive)
	* @return the range of usuario slic rols
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<postlogin.model.UsuarioSlicRol> findAll(int start,
		int end) throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns an ordered range of all the usuario slic rols.
	*
	* <p>
	* Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
	* </p>
	*
	* @param start the lower bound of the range of usuario slic rols
	* @param end the upper bound of the range of usuario slic rols (not inclusive)
	* @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
	* @return the ordered range of usuario slic rols
	* @throws SystemException if a system exception occurred
	*/
	public java.util.List<postlogin.model.UsuarioSlicRol> findAll(int start,
		int end,
		com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the usuario slic rols where usuario = &#63; from the database.
	*
	* @param usuario the usuario
	* @throws SystemException if a system exception occurred
	*/
	public void removeByUsuario(java.lang.String usuario)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Removes all the usuario slic rols from the database.
	*
	* @throws SystemException if a system exception occurred
	*/
	public void removeAll()
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of usuario slic rols where usuario = &#63;.
	*
	* @param usuario the usuario
	* @return the number of matching usuario slic rols
	* @throws SystemException if a system exception occurred
	*/
	public int countByUsuario(java.lang.String usuario)
		throws com.liferay.portal.kernel.exception.SystemException;

	/**
	* Returns the number of usuario slic rols.
	*
	* @return the number of usuario slic rols
	* @throws SystemException if a system exception occurred
	*/
	public int countAll()
		throws com.liferay.portal.kernel.exception.SystemException;
}